﻿<UserControl x:Class="mal.balades.SlideShow.ImageView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Width="532" Height="454"
    >

    <Grid x:Name="LayoutRoot" Background="White">
        <Border Background="White" BorderBrush="LightGray" BorderThickness="1" CornerRadius="2">
            <Border.Effect>
                <DropShadowEffect Opacity="0.5" />
            </Border.Effect>
        </Border>
        <Grid Margin="10,10,10,0">
            <Image Source="{Binding ImageUrl}" 
                       Width="512"
                       VerticalAlignment="Top" HorizontalAlignment="Center"/>

            <TextBlock VerticalAlignment="Bottom" 
                       HorizontalAlignment="Center" 
                       TextWrapping="Wrap"
                        Margin="0,0,0,10"
                        FontFamily="English_.ttf#English"
                        FontSize="{Binding FontSize}"
                        Text="{Binding Title}" />
        </Grid>

    </Grid>
</UserControl>
